package killerqueen.game.main;

import java.util.Map;

public class ParamGetter {

	private final Map<String, String> paramMap;

	public ParamGetter(Map<String, String> paramMap) {
		this.paramMap = paramMap;
	}

	public String getAsString(String key) {
		return paramMap.get(key);
	}

	public float getAsFloat(String key) {
		return Float.parseFloat(paramMap.get(key));
	}

	public int getAsInt(String key) {
		return Integer.parseInt(paramMap.get(key));
	}
}
